refactor config info