refactor conf