added function scan_for_files