added support for globals
demo of getglobal