optimize globalVariableHandler a little