added suport for interfacing with global variables