switch filterFiles with processTemplates