Poop draws the flys. Use barn lime on the run. It does help but will not entirely cure the problem. If the run is small constant raking and cleanup is needed or some kind of non-mold growing mulch. I have a big run and sometimes still i have to put out lime in wet weather to keep the flys...