added basic xref generation.