working on serializing/deserializing new types