wire up factory with controller