adds support for overriding template name