       kite.save (err)->
         return  callback new KodingError "kite couldn't saved" if err
         account = client.connection.delegate
-        account.addKite (err, res)->
+        account.addKite kite, (err, res)->
           return  callback new KodingError "kite couldn't added to account" if err
           callback null, kite
 

      instance            : []
      static              : []
    sharedMethods         :
      static:
        create:
          (signature Object, Function)
        list:
          (signature Object, Object, Function)
      instance:
        modify:
          (signature Object, Function)
        deleteKite:
          (signature Function)
        fetchPlans:
          (signature Function)
        removePlan:
          (signature Object, Function)

    relationships: ->
      plan          :
        as          : 'kitePlan'
        targetType  : JKitePlan

  @create: permit 'create kite',
    success:(client, formData, callback)->

jraphical = require 'jraphical'
module.exports = class JKite extends jraphical.Module

  KodingError         = require '../error'
  {permit}            = require './group/permissionset'
  {signature}         = require 'bongo'
  {Relationship}      = jraphical

  @trait __dirname, '../traits/protected'

  @share()
  @set
