 Promise    = require 'bluebird'
 KiteCache  = require './kitecache'
 KiteLogger = require '../kitelogger'
-KiteCommandBuffer = require './kitecommandbuffer'
-uuid = require 'node-uuid'
 
 
 module.exports = class KodingKite extends kd.Object

    super options

    { name } = options

    @commandBuffer = new KiteCommandBuffer { kite: this }

    @on 'open', =>
      @isDisconnected = no # This one is for the manual disconnect request ~ GG


            KiteLogger.started name, rpcMethod

            resolve (@transport?.tell args...

              .then (res) =>

                KiteLogger.success name, rpcMethod
                return res

              .catch (err) =>
                if _errPromise = @handleKiteError err, args
                  return _errPromise

