put back max peer connection checking