change the way of config loading