added basic templating