template for adding new detectors