serialization code written, compiles, not fully tested