added improved version of the BaseEstimator config