fix templating madness