code to send messages, might work