working progress on deserialization