+globals              = require 'globals'
+Promise              = require 'bluebird'
 htmlencode           = require 'htmlencode'
-Promise              = require 'bluebird'
-globals              = require 'globals'
 
 kd                   = require 'kd'
 KDController         = kd.Controller
 KDNotificationView   = kd.NotificationView
 
+nick                 = require 'app/util/nick'
+isKoding             = require 'app/util/isKoding'
+showError            = require 'app/util/showError'
+isLoggedIn           = require 'app/util/isLoggedIn'
+
 remote               = require('../remote').getInstance()
-showError            = require '../util/showError'
-isLoggedIn           = require '../util/isLoggedIn'
-nick                 = require '../util/nick'
-
 Machine              = require './machine'
 KiteCache            = require '../kite/kitecache'
 ComputeStateChecker  = require './computestatechecker'



  checkStackRevisions: ->
    return  if kd.singletons.groupsController.getGroupSlug() is 'koding'

    @stacks.forEach (stack) =>


        stack._revisionStatus = { error, status }

        console.info "Revision info for stack #{stack.title}", status
        @emit 'StackRevisionChecked', stack

        if stack.machines.length isnt machineCount
          @emit 'StacksInconsistent', stack