basic templating in place