simplify to peer.js