add main controller and bootstrap