added some error handling
Merge branch 'master' into gh-pages
updating gh-pages