add xrefs to config; thread through xref data (def and db); support functions