     @getStack selector, (err, stack)->
       callback err, stack?.getId()
 
-  @getStack = ({user, group, sid, meta}, callback)->
-
-    sid ?= 0
-
-    JStack.one {user, group, sid}, (err, stack)->
+  @getStack = ({user, group, meta}, callback)->
+    JStack.one {user, group, meta}, (err, stack)->
       return callback err  if err
 
-      if stack
-        console.log "Returning a stack"
-        return callback null, stack
+      return callback null, stack  if stack
 
-      console.log "Creating new stack."
-      stack = new JStack {user, group, sid, meta}
+      stack = new JStack {user, group, meta}
       stack.save (err)->
         if err then callback err
         else callback null, stack

    schema            :
      user            : String
      group           : String
      sid             : Number
      meta            : Object

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

      return callback err  if err

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