config/module: detectors, some more work on Tree