match_prefix -> mg_match_prefix