make_filelist moved to tool, add threading limitation
avoid endless loop
fixation for 7-digit IDs