set class namespace for hash