add support for global variables