adding exception serialization support