renaming mon-engine to detector, much shorter and more general