add backupGlobal/restoreGlobal methods in favor of global backupGlobals