added show globals and set global from oej's patch