wrangled some external ref problems
wrangled some external ref problems