implemented scoring and peerdb balancing