fixed unecessary connects.