added set -e to scripts