some more templating stuff