fixed check filenames