output passed through exception, not check_output