added error checks
Merge branch 'master' of https://github.com/isiloron/shiny-bear