sending messages to server works