fix for getting the filenames