           routeToMachineWorkspace machine
         else
           routeToLatestWorkspace()
-
-      # {params} = info
-      # {machineLabel} = params
-      # params.username = nick()
-
-      # refreshWorkspaces ->
-
-      #   findWorkspace params, (workspace) ->
-
-      #     if workspace
-      #       return loadWorkspace workspace, params
-      #     else
-      #       for machine in globals.userMachines when machine.slug is machineLabel
-      #         break
-
-      #       if machine
-      #       then routeToMachineWorkspace machine
-      #       else loadWorkspace null, params
-
-      #     routeToLatestWorkspace()

    router.handleRoute "/IDE/koding-vm-0/my-workspace"


  # router = kd.getSingleton 'router'

  # for machine in globals.userMachines when machine.isMine()
  #   return routeToMachineWorkspace machine

  # kd.singletons.computeController.fetchMachines (err, machines) ->

  #   if err or not machines.length
  #   then router.handleRoute "/IDE/koding-vm-0/my-workspace"
  #   else routeToMachineWorkspace machines.first


routeToMachineWorkspace = (machine) ->

  latestWorkspace = getLatestWorkspace()

        routeToMachineWorkspace machine
      else
        routeToFallback()


loadCollaborativeIDE = (id) ->
