generates a single output file if requested