added filter for file names in a directory