     channame = chanName
     @communicator.sendCommand channame, cmd, args, callback
 
-  queue: (cmd, args, callback)->
-    @communicator.queueCommand cmd, args, callback
+  queue: (channel, cmd, args, callback)->
+    @communicator.queueCommand channel, cmd, args, callback
 
 
   constructor:(@kiteName, @api, @publicKey)->

    @api._leave? messageJson

  join:(messageData)->
    console.log "auth.join", messageData
    {routingKey, username, correlationName, serviceGenericName} = messageData
    console.log "#{username}@#{correlationName} has joined to service #{serviceGenericName}"
    @clients[routingKey] = username


    @sendCommand @getChannelNameForGenericName(), "kite.join", [@getChannelNameForGenericName(), @getChannelNameForKite()]

    startQueueChecker = ()=>
      startQueueCheckerInterval = setInterval ()=>
        @commands['kite.consume']()
      , 10

