rejecting unnecessary filenames in a single place instead of a few