modify error and maintenance controller