       return callback err  if err
 
       if stacks.length is 0
-        JStack.getStack { user, group }, (err, stack) =>
+        meta = title: "Default", slug: "default"
+        JStack.getStack { user, group, meta }, (err, stack) =>
           callback err, [stack]
       else
         callback null, stacks

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

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

    sid ?= 0

    JStack.one {user, group, sid}, (err, stack)->
      return callback err  if err

      if stack
        console.log "Returning a stack"
        return callback null, stack

      console.log "Creating new stack."
      stack = new JStack {user, group, sid, meta}
      stack.save (err)->
        if err then callback err
        else callback null, stack

      {group} = client.context
      user    = client.connection.delegate.profile.nickname

      @getStack {user, group, meta}, callback

  @getStack$ = permit 'get stacks',

