add basic templating