                 createdVMs[vm.planCode] = 0
               createdVMs[vm.planCode] += 1
 
-            console.log createdVMs
-
             stack = []
 
             Object.keys(paidVMs).forEach (planCode)=>

    JVM                  = require '../vm'
    async                = require 'async'

    # _checkGroupVMs = (cb)=>
    #   JRecurlySubscription.getGroupSubscriptions @, (err, subs)->
    #     return cb new KodingError "Payment backend error: #{err}"  if err

    #     vms = {}
    #     subs.forEach (sub)->
    #       if sub.status is 'active'
    #         vms[sub.planCode] = sub.quantity
    #     cb null, vms

    _createVMs = (type, cb)=>
      if type is 'user'
        planOwner = "user_#{delegate._id}"

        subs.forEach (sub)->
          if sub.status is 'active' and sub.planCode.indexOf('group_vm_') > -1
            paidVMs[sub.planCode] = sub.quantity

        createdVMs = {}
        JVM.someData
