added primitive namespace support