safer function check
Merge branch 'master' into gh-pages