fix controller and environment config