cannot find sendMsg function