refactored serialization base class functionalities