tweaked pull.sh