deal with config