added support for outputFile option