better peer connect algo