upgrade to new peerindex API