Change the way to create configuration file