refactoring of main control (parameter parsing, controller
instantiation)