implemented get_nameid_type
implemented get_nameid