     after: "non-overlapping, random, 3 digits prime-number of minutes"
     middleware : (name,callback) -> koding.disconnect callback
     middlewareTimeout : 15000
-  # WE'RE NOT SURE IF THIS SOFT LIMIT WAS A GOOD IDEA OR NOT
-  # limit_soft:
-  #   memory: 200
-  #   callback: (name, msg, details) ->
-  #     console.log "[SOCIAL WORKER #{name}] Using too much memory, accepting no more new jobs."
-  #     process.send?({pid: process.pid, exiting: yes})
-  #     koding.disconnect()
-  #     setTimeout ->
-  #       process.exit()
-  #     , 20000
-  # DISABLED TO TEST MEMORY LEAKS
-  # die :
-  #   after: "non-overlapping, random, 3 digits prime-number of minutes"
-  #   middleware : (name,callback) -> koding.disconnect callback
-  #   # TEST AMQP WITH THIS CODE. IT THROWS THE CHANNEL ERROR.
-  #   # middleware : (name,callback) ->
-  #   #   koding.disconnect ->
-  #   #     console.log "[SOCIAL WORKER #{name}] is reached end of its life, will die in 10 secs."
-  #   #     setTimeout ->
-  #   #       callback null
-  #   #     ,10*1000
-  #   middlewareTimeout : 15000
-  # toobusy:
-  #   interval: 10000
-  #   callback: ->
-  #     console.log "[SOCIAL WORKER #{name}] I'm too busy, accepting no more new jobs."
-  #     process.send?({pid: process.pid, exiting: yes})
-  #     koding.disconnect()
-  #     setTimeout ->
-  #       process.exit()
-  #      , 20000
 
 koding = new Bongo {
   verbose     : social.verbose

      require './models/app'
    ]

  if KONFIG.misc?.debugConnectionErrors then
    # TEST AMQP WITH THIS CODE. IT THROWS THE CHANNEL ERROR.
    # koding.disconnect ->
    #   console.log "[SOCIAL WORKER #{name}] is reached end of its life, will die in 10 secs."
    #   setTimeout ->
    #     process.exit()
    #   ,10*1000

console.info "Koding Social Worker #{process.pid} has started."

# require './followfeed' # side effects
express = require 'express'
cors = require 'cors'
helmet = require 'helmet'

      else
        console.log "this is not a proper account".red
        console.log "constructor is JAccount", JAccount is account.constructor
}

koding.on 'authenticateUser', (client, callback)->
