refactor the configuration