amend the way to load config file