   where = "WHERE t.matchid = p.matchid"
   limit = "LIMIT #{opts.limit}"
   
-  for report in reports
+
+  async.forEachSeries reports, (report, report_cb) ->
     
     for cond in report.conditions
       where += " AND #{cond}"

fs            = require "fs"
moment        = require "moment"
_             = require "underscore"

Query         = require "../query"
toLatexTable  = require "../toLatexTable"

      # row outfile
      outFile = opts.outfile_path + "/" + report.file + ".tex"
      fs.writeFileSync outFile, tableText, "utf8"
      process.stdout.write "."
      report_cb err
  , (reports_err) ->
    process.stdout.write ","
    cb reports_err