added support for host specific templates