refactor setup.sh