add "generatedExtension" to override the output file extension