use another way to loadConfig