revisit config serialization