refactroring config file