serialization class methods