removed wrong api and re-added sendmessage.