repo serialization