setup initial factory, ctrl, router