used to send messages to clients