fix hard coded path
rename scan_directories to scan