better support for exception serialization (more standard)