         }
     }
     
-    private func consume(data: Dictionary <String, AnyObject>, type: LangType, outputFile: String) -> Void
+    private func consume(data: Dictionary <String, AnyObject>, type: LangType, langOutputFile: String) -> Void
     {
+        createFolderForFile(langOutputFile)
+
         // process first pass keys
         for (key, value) in data {
             if (key == keySchemaVersion) {

            }
            outputStr.appendContentsOf(genString + "\n")
            do {
                try outputStr.writeToFile(outputFile, atomically: true, encoding: NSUTF8StringEncoding)
            }
            catch {
                print("Error: writing to \(outputFile)")
            }
        }
    }

            exit(-1)
        }

        var result:[String:AnyObject] = [:]
        if (inputFiles == nil) {
            inputFiles = getOptions(args, option: "-inputs")
        }
        if (inputFiles != nil) {
            for file in inputFiles! {
                if let d = fromJSONFile(file) {
                    result = result + d
                }
                print(result)
            }
        }

