scoping of variables
Merge branch 'master' into gh-pages