add class MsgReader