got basic templating working