added logger to peer, now must change print statements to log statements