catch for serialization