remove globals
xref src to remove dupes