 
   onTellSuccess: (id, method, result) ->
 
-    debug 'log', "~~~~~ SUCCESS (#{@kite.options.name}) ~~~~~"
+    @debug 'log', "~~~~~ SUCCESS (#{@kite.options.name}) ~~~~~"
+
     @storage[id] = _.assign {}, @storage[id], { result }
     @emit 'change'
-    debug 'log', @storage[id]
+
+    @debug 'log', @storage[id]
 
 
   onTellFail: (id, method, error) ->
 
-    debug 'error', '~~~~~ ERROR ~~~~~'
+    @debug 'error', '~~~~~ ERROR ~~~~~'
+
     @storage[id] = _.assign {}, @storage[id], { error }
     @emit 'change'
-    debug 'error', error
 
+    @debug 'error', error
+

    @storage = kd.utils.dict()

    @bindKiteEvents()


  bindKiteEvents: ->


  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
