add support for calling global lua functions.