move connect_out function to NextControl