various fixes, especially relationships and xrefs