beginning of package serialization, and build graph (not compiling yet)