fix connectTo()