use fnmatch for file patterns