change the way the template engine is used