put def and call detectors in seperate files