refactor config into sections