added support for template tag