refactor client analyze peerlist not finished