 
   constructor: (options = {}) ->
 
+    # activating this will start logging to console.
+    # use `commandBuffer.setOption('debug', yes)` to activate it on runtime.
+    options.debug ?= no
+
     super options
 
     { kite } = options

    @storage = kd.utils.dict()

    @bindKiteEvents()


  bindKiteEvents: ->


  onTellSuccess: (id, method, result) ->

    @debug 'log', "~~~~~ SUCCESS (#{@kite.options.name}) ~~~~~"

    @storage[id] = _.assign {}, @storage[id], { result }
    @emit 'change'

    @debug 'log', @storage[id]


  onTellFail: (id, method, error) ->

    @debug 'error', '~~~~~ ERROR ~~~~~'

    @storage[id] = _.assign {}, @storage[id], { error }
    @emit 'change'

    @debug 'error', error

