reorganise configuration file