major overhaul to setup.sh