remove some unused serialization code