     computeController.checkGroupStacks()
 
 
+_bindTemplateEvents = (stackTemplate) ->
+
+  { reactor } = kd.singletons
+
+  { _id: id } = stackTemplate
+
+  stackTemplate.on 'update', ->
+    reactor.dispatch actions.UPDATE_STACK_TEMPLATE_SUCCESS, { stackTemplate }
+  stackTemplate.on 'deleteInstance', ->
+    reactor.dispatch actions.REMOVE_STACK_TEMPLATE_SUCCESS, { id }
+
+
 handleMemberWarning = (message) ->
 
   console.warn '[member:warning]', message

        return

      reactor.dispatch actions.UPDATE_STACK_TEMPLATE_SUCCESS, { stackTemplate }
      resolve stackTemplate

generateStack = (stackTemplateId) ->

  remote.api.JStackTemplate.some query, { limit: 30 }, (err, templates) ->

    if err
      return reactor.dispatch actions.LOAD_TEAM_STACK_TEMPLATES_FAIL, { query, err }

    templates = templates.filter (t) -> t.accessLevel is 'group'

    reactor.dispatch actions.LOAD_TEAM_STACK_TEMPLATES_SUCCESS, { query, templates }

    templates.forEach (template) -> _bindTemplateEvents template


loadPrivateStackTemplates = ->
