works with SimpleTemplateEngine