make sure there are no duplicate filenames