fix to run setup script outside of visit