change regexp for detector_files and create require file