initial work on templating