add missing get_type_for_mode functions