clean up serialization