 routeToMachine = (options = {}) ->
 
   cc = kd.singletons.computeController
-  { machine, label, uid } = options
+  { machine, slug, uid } = options
 
   if machine
     loadIDE { machine }

  else
    cc.ready ->

      if label
        machine = cc.storage.get 'machines', 'label', label
        debug 'machine with label', { label, machine }
      else if uid
        machine = cc.storage.get 'machines', 'uid', uid
        debug 'machine with uid', { uid, machine }

      unless machine
        [ machine ] = cc.storage.get 'machines'
        if machine
          if slug or uid
            showError 'Requested machine not found, first available machine is loaded instead.'
          kd.getSingleton('router').handleRoute "/IDE/#{machine.slug}"
          return

      # if machine.isPermanent() or machine.meta?.oldOwner
