binary serialization fixed