made setup.sh more flexible