cleaned up source, turned threshold down to 4