namespace support for templates