added vdb read-write serialization code