- refactor import/export code - make import/export use the same JSON parsing as API - make Patch.AssertIsValid actually useful