add minimatch for filename matching