more templating stuff