serialization error handling