 noflo = require("noflo")
+_ = require("underscore")
 _s = require("underscore.string")
 print = require("node-print")
+util = require("util")
 
 format = "%13s | %s"
+padding = "              | "
 log = []
 count = 0
+options =
+  showHidden: false
+  depth: 2
+  colors: false
 
 flush = ->
   console.log "---------- NEW STREAM ----------"


display = (log) ->
  for packet, i in log
    print.pf format, "DATA", packet
    delete log[i]


      here = @locate()
      here[group] = []
      @groups.push group
      @outPorts.out.beginGroup group if @outPorts.out.isAttached()

    @inPorts.in.on "data", (data) =>
      here = @locate()
      here.push data
      @outPorts.out.send data if @outPorts.out.isAttached()

    @inPorts.in.on "endgroup", (group) =>
      @groups.pop()
      @outPorts.out.endGroup() if @outPorts.out.isAttached()

    @inPorts.in.on "disconnect", =>
      @outPorts.out.disconnect() if @outPorts.out.isAttached()

      log.push @cache
      count--
