templates and tmp