/**
 * batch-parse - batches should return an array of bridge functions to run
 *
 * @param  {string} batchName name of the batch (for logging/output folder)
 * @param  {string} batchFile path of the json batch file
 * @return {array}           array of Bridge instances
 */
module.exports = (batchName, batchFile) => {
  const batch = require(batchFile)
  const Bridge = require('./bridge')
  const config = require('../config.json')

  return batch.map((b) => {
    let o = Object.assign({}, {
      type: 'bridge',
      task: true,
      batch: batchName
    }, b)
    return new Bridge({config: config, opt: o})
  })
}

@@ -429,16 +429,288 @@
 json')%0A%0A
+  class Script %7B%0A    constructor(%7Bconfig, opt%7D) %7B%0A      this.config = config%0A      this.opt = opt%0A      this.opt.cfg = config%0A      this.script = require(config.dirs.input + opt.name)%0A    %7D%0A    run(callback) %7B%0A      this.script(this.config, this.opt, callback)%0A    %7D%0A  %7D%0A%0A
   return
@@ -834,16 +834,89 @@
   %7D, b)%0A
+    if (o.type === 'script') return new Script(%7Bconfig: config, opt: o%7D)%0A
     retu

fix script runs