added sleep and commented out set -e