     for item, index in (@get type)
       if item._id is key
         _.extend @storage[type][index], value
+        @emit 'change'
         return @storage[type][index]

      prePush    : (template) ->
        template.on 'update', kd.noop

    credentials  :
      collection : 'JCredential'


  constructor: ->

        @push 'machines', machine  for machine in stack.machines

      postPush   : (stack) ->
        @emit 'change'
        { reactor } = kd.singletons
        reactor.dispatch actions.LOAD_USER_ENVIRONMENT_SUCCESS, stack.machines
        reactor.dispatch actions.LOAD_USER_STACKS_SUCCESS, [ stack ]
