add MsgHandler to handler the incomming msg