2 global variables bugfix

to see it in action, run the demo, and payload and message are on the global name space