basic templating working