refactor confirm_recv_parse