           
           cmd.on 'close', (code) ->
             console.log 'unzip process exited with code ', code
+            manifestFilePath = path.join(kitePath, kiteName, "manifest.json")
+            content = JSON.parse fs.readFileSync(manifestFilePath)
+            content.version = version
+            fs.writeFileSync manifestFilePath, JSON.stringify(content)
             callback()
 
   runKite: () ->


console.log "deployer:", manifest.name

manifest.name = "Deployer_#{os.hostname()}_#{uuid.v4()}"
kite.worker manifest, 

  deploy: (options, callback) ->
    {id, kiteName, version, zipUrl} = options
    deployment = new Deployment(id, kiteName, zipUrl)
    deployment.create-lxc () ->
      deployment.downloadAndExtractKite deployment.runKite.bind deployment

    return callback null, "Hello, I'm #{name}! This is Deployer"



      callback()

  downloadAndExtractKite: (callback) ->
    {kitePath, zipUrl, version, kiteName} = this
    fs.mkdirsSync(kitePath) ## TODO mkdir creates 0777, exists check
    
    filepath = path.join kitePath, "#{kiteName}.zip"
