using tmpl for templating
fixing new tmpl templating