resolves #417 update xref to support interdocument references