     options.history ||= window.history
     options.storage ||= window.sessionStorage
     
-    @networkController = Stacker.NetworkController
+    @networkController = new Stacker.NetworkController
     @historyStack = Stacker.alloc(Stacker.Cards)
     @historyController = new Stacker.HistoryController(
       @historyStack, options.history, options.storage

class Stacker.Cards extends Backbone.Collection
  model: Stacker.Card

  constructor: ->
    super
    @cid = _.uniqueId('c')
    @id ||= _.uniqueId('id-')

  @fromJSON: (data) ->
    cards = Stacker.alloc(this)

window.Stacker = {}

Stacker.Repo = new Backbone.Collection
Stacker.alloc = (klass, args...) -> @Repo.add item = new klass(args...); item
Stacker.get = (id) -> @Repo.get(id)
Stacker.flush = -> @Repo.set [], silent:true

