updated server to send message