you can use the multiplexer to connect it automatically and the way to use the multiplexer to connect it automatically is connect the automatically wires to the multiplexer then connect the multiplexer output to the line and if you want to connect a different input to the line you can change the enable input