try with no final slash
white space
move tests inside function so i'm able to return early
move function start up earlier
put shiny unbind/bind in try/catch to avoid errors