move connect_in function to PrevControl