       res.on "end", ->
         data = JSON.parse data
 
-        @config = __createAmqpConfig data 
+        @config = __createAmqpConfig data
         console.log 'Kite has started'
 
         @kite =  new Kite config.name, functions
         @kite.run @config
 
       res.on "error", (e) ->
-        console.log "Cannot start Kite #{e.message}"+        console.log "Cannot start Kite #{e.message}"

        vhost       : '/'
        heartbeat   : 10

        
    config.amqp.port      = res.port if res?.port?
    config.amqp.host      = res.host if res?.host?
    config.amqp.protocol  = res.protocol if res?.protocol?

    return config

  constructor:(config, functions, roundRobin = false)->

    schema = config.apiAdress.split(":")[0]

    if schema == "https"
