 
       console.log "Stack not found, creating new one."
 
-      stack = new JStack {user, group, sid}
+      stack = new JStack {user, group, sid, meta}
       stack.save (err)->
         if err then callback err
         else callback null, stack
 
   @createStack = permit 'create stacks',
 
-    success: (client, callback)->
+    success: (client, meta, callback)->
 
       {group} = client.context
       user    = client.connection.delegate.profile.nickname

    @getStack selector, (err, stack)->
      callback err, stack?.getId()

  @getStack = ({user, group, sid}, callback)->

    sid ?= 0



      stackCounter.next (err, sid)=>
        return callback err  if err
        @getStack {user, group, sid, meta}, callback

  @getStack$ = permit 'get stacks',

