update references to global objects