added xref serialization