deal with config better