reorder connect logic