only fails with pipefail enabled