refactor config format