     pongInterval = 1000 * 15
 
     @pingInterval = if @amIHost
-    then KD.utils.repeat pingInterval, @bound 'sendPing'
-    else KD.utils.repeat pongInterval, @bound 'checkPing'
+    then kd.utils.repeat pingInterval, @bound 'sendPing'
+    else kd.utils.repeat pongInterval, @bound 'checkPing'
 
 
   sendPing: -> @pingTime.setText Date.now().toString()

  createWorkspace: (options = {}) ->

    name         = options.name or 'My Workspace'
    rootPath     = "/home/#{KD.nick()}"
    {label, uid} = @mountedMachine

    return KD.remote.api.JWorkspace.create
      name         : name
      label        : options.label        or label
      machineUId   : options.machineUId   or uid


  removeMachineNode: ->

    kd.singletons.mainView.activitySidebar.removeMachineNode @mountedMachine


  unshareMachineAndKlient: (username, fetchUser = no) ->

    if fetchUser
      return remote.cacheable username, (err, accounts) =>

        return showError err  if err

        @setMachineUser accounts, no

