weeded out most of the obvious bugs