add support for setGlobalProperty