added outputFile option