add nested namespace support