migrated serialization operations into dedicated class