refactor config map