add MsgQueryFail and MsgQuerySuccess