changed notifications serialization logic.