 
 class Dredd
   constructor: (config) ->
-    emitter = new EventEmitter
     @callback = null
     @configuration =
       blueprintPath: null
       server: null
-      emitter: emitter
+      emitter: new EventEmitter
       options:
         'dry-run': false
         silent: false

    #normalize options and config
    for own key, value of config
      @configuration[key] = value

    #coerce single/multiple options into an array
    @configuration.options.reporter = coerceToArray(@configuration.options.reporter)


          # need to wait for files to finish writing, otherwise we can exit
          if stats.fileBasedReporters is 0
            callback(null, stats)

  # called when a file-based reporter saves
