connects, emits ready event