update mx_send_reply() function