serializationhelper refactor