   do ->
 
     JGroup = require '../group'
-    JGroup.on 'MemberAdded', ({group, member}) ->
+    JGroup.on 'MemberAdded', ({ group, member }) ->
 
       # No need to try creating group stacks for guests or koding group members
       return  if group.slug in ['guests', 'koding']


        provider.postCreate client, {
          postCreateOptions, machine, meta, stack: stack._id
        }, (err)->

          return callback err  if err

          stack.appendTo machines: machine.getId(), (err)->
            callback err, machine


  @create$ = permit 'create machines', success: revive

    shouldReviveClient   : yes
    shouldPassCredential : yes
    shouldReviveProvider : no
    shouldLockProcess    : yes

  , (client, options, callback)->

    { r: { account } } = client
    { stack } = options

    JComputeStack = require '../stack'
    JComputeStack.getStack account, stack, (err, revivedStack)=>
      return callback err  if err?
      return callback new KodingError "No such stack"  unless revivedStack

      options.stack = revivedStack



      queue.push ->

        callback null, { stack, results }

      daisy queue

