modified to enable shinyapps web deployment