Not sure why you have to deal with config now; this should be taken care of by the header file, like in all controllers. All this code should be removed.