always use go$global for accessing globals, cause a later defined variable may shadow the name (fixes #9)