offset is a global var
Merge pull request #700 from ruleant/offset

offset is a global var