changed usage of templateFile() to getTemplateFile()