add query dealing with filenames