modified to support separate detectors module