use stdout when no output file is specified