refactoring configuration file load