config settings refactor