change ClawCallback API, add param: msgType int