use query for getClosestPeers