refactored defaultConfig/customConfig loading