rename node to peer and define it at the start, suggestion from @dwaite