 
     # sendCommand broadcasts, with this one, we first push to queue
     # then broadcast and one of them consumes
-    @callbackid++
+    @callbackId++
     data = {
-      cmd: cmd,
-      id: @callbackid,
+      cmd: cmd, 
+      id: @callbackId, 
       args: args,
       from: @getChannelNameForKite()
     }
 
-    if cb
-      @waitingReplies[@callbackid] = cb
+    if callback
+      @waitingReplies[@callbackId] = callback
 
     datastr = JSON.stringify(data)
     @mergenData.rpush channel, datastr, ()=>


  sendCommand: (channel, cmd, args, callback=null)->
    # this broadcasts command to the said channel
    @callbackid++
    data = {
      cmd: cmd,
      id: @callbackid,
      args: args,
      from: @getChannelNameForKite()
    }
    if cb
      @waitingReplies[@callbackid] = cb
    @mergenData.publish channel, JSON.stringify(data)

  connectToMessageBus: (cb)=>

    # we have a second connection because, redis client in node doesnt send any commands
    # when it enters subscribe mode, though redis docs says you can publish if you are in subcribe

      if subscribeToChannelNames.length is 0
        clearInterval subscribeCheck
        startQueueChecker()
        callback()
    , 10
    @connected = true

