added peer_id method