added support for the  global array
Merge pull request #6 from wick-ed/master

reviewed diff and tested locally with 0.6.0