write to outfile instead of stdout