fixing bugs in setup.sh