can now pipe to output file