       checkrabbit = setInterval ()=>
         if rabbitReady
           clearInterval checkrabbit
+          @db = @communicator.mergenData
           @emit 'kite-ready'
       , 10
 


  queue: (cmd, args, callback)->
    @communicator.queueCommand cmd, args, callback

  constructor:(@kiteName, @api, @publicKey)->
    if not @publicKey

            console.log "couldnt parse json"
            return
          console.log "!!!!!!!!!!!!! lpop lpop >>>>>>", val
          @receivedCommand val.from, val.id, val.cmd, val.args

  getChannelNameForKite:(genericName, uniqueName)->
    gn = genericName or @serviceGenericName
