more improvements managing detectors/counters