adds some templating