added capability_type and map_meta_cap