make xref work