move serialization classes to upstream project, add dep