added multiple namespace support