msgtype explained