added pipefail