Serialization draft

\cc @cy6erskunk