adding support for nestedNamespace for template files