added some send to peer logic