added --outputPath flag to specify output location