use getTemplates instead of find