added set -e