 
   downloadAndExtractKite: (callback) =>
       fs.mkdirsSync(@kitePath) ## TODO mkdir creates 0777, exists check
+      fs.chownSync(@kitePath, 500000, 500000)
       
       filepath = path.join @kitePath, "#{@name}.zip"
       file = fs.createWriteStream filepath

              console.log 'unzip process exited with code ', code
              callback()

  runKite: () ->
    process.chdir path.join @kitePath, @name
    cmd = spawn "/usr/bin/lxc-execute && /usr/bin/kd kite run #{@name}\""
    cmd.stdout.on 'data', (data) ->
      console.log 'stdout: ', data
    cmd.stderr.on 'data', (data) -> 
      console.log 'stderr: ', data
    cmd.on 'close', (code) ->
      console.log 'child process exited with code ', code


    console.log "......LXC constructor",  @name

  createLxc: (callback) ->
    cmd = spawn "create-lxc", [@name]
    console.log 'create lxc'
    cmd.stdout.on 'data', (data) ->
      console.log 'stdout: ', data.toString()
    cmd.stderr.on 'data', (data) -> 
      console.log 'stderr: ', data.toString()
    cmd.on 'close', (code) ->
      console.log 'create lxc process exited with code ', code
      callback()
