updates to serializing and repo structure.