     srvr.send "map "+lobby.mod+";"
     console.log "server configured"
     new Fiber(->
-      Meteor.setTimeout(->
-        finalizeInstance(serverObj, lobby, instance)
-      , 10000)
+      finalizeInstance(serverObj, lobby, instance)
     ).run()
   ).on('end', ->
     console.log "rcon disconnected for "+instance.id

#versions looks:like rota=0.1,lobby=0.5
getAddonInstalls = (versions)->
  toinst = []
  currAddons = {}
  for ver in versions
    p = ver.split '='
    currAddons[p[0]] = p[1]
  console.log currAddons
  #check against server versions
  for addon in ServerAddons.find().fetch()
    curr = currAddons[addon.name]
    if !curr? || curr isnt addon.version
      toinst.push(addon.name+"="+addon.version+"="+getBundleDownloadURL(addon.bundle).split('=').join('+'))
  toinst.join ','

configureServer = (serverObj, lobby, instance)->
  console.log "configuring server "+instance.ip+":"+instance.port+" rcon pass "+instance.rconPass

Rcon = Meteor.require('rcon')
ws = Meteor.require('ws').Server
serverPassword = "kwxmMKDcuVjQNutZOwZy"
serverVersion = "1.0.9"
idCounter=100
sockets = {}
pendingInstances = new Meteor.Collection "pendingInstances"
@activeInstances = new Meteor.Collection "activeInstances"

Meteor.startup ->
  servers.remove({})
  pendingInstances.remove({})
  activeInstances.remove({})
  lobbyQueue.find().observeChanges
    added: (id, fields)->
      queueProc()
