prepare.sh modified