add stats and Detector