refactoring config parsing