support for multiple templates and a new template