improving support for globals