working on sending messages to peers