used to check if filenames are used in script.