added sendmessage to CM