added send messages to the server