init controller and modules