updated protocol to send message