pipefail is the solution, not cat