a product called "dont bug me". I think its from advanced nutrients. Also, a neem oil foliar spray works good for spider mites, not sure about flies. Bad news is you dont want to spray your plant at all during flowering but if the infestation is really bad you have no choice.