updated scan_detector

trying to change this to log functionality, - gonna test it all now