added sendmessage basic and addlistener to sendmessages