third times a charm--this serialization function seems tow ork