   scanProcess.stdout.pipe(split()).on 'data', (data) ->
     if data[0] == STOP_CHAR
       scanFinished = true
-      console.log 'Scan done'
       maybeEnd()
     else
       searches++


  end = ->
    finished = true
    console.timeEnd 'Multi Process Scan'
    console.log "#{resultCount} matches in #{pathCount} files"

buildRegex = (pattern) ->

      searches--
      console.log "search end #{searches}" if options.verbose
    else if line and line.length
      results = JSON.parse(line)
      if results
        pathCount++
        resultCount += results.results.length
