fix templating