first pass at binary serialization
Binary serialization