use setConfig in mergeConfig