start writing code to respond to peer messages