committing changes after using serialization to persist state