I've had flies go through all of my screen cages, so I ended up having to feed in an aquarium-like tank and would brush the fruitflies back to the bottom when they climbed to the top and tried to get out. Needless to say, I finally switched them over to pinheads, which still occasionally got out, but were much easier to deal with in the house...my pup loves hunting for them.