       { JPaymentSubscription } = KD.remote.api
 
       if type is 'group'
-        getGroup().checkPayment (err, subs) =>
+        KD.getGroup().checkPayment (err, subs) =>
           findActiveSubscription subs, planCode, callback
       else
         JPaymentSubscription.fetchUserSubscriptions (err, subs) ->
           findActiveSubscription subs, planCode, callback
-
-  deleteVM: (vmInfo, callback) -> debugger
-  # views
 
   fetchPlanByCode: (planCode, callback) ->
 


    switch type
      when 'group', 'expensed'
        getGroup().fetchPaymentInfo callback
      when 'user'
        JPaymentPlan.fetchAccountDetails callback


class PaymentController extends KDController

  fetchPaymentMethods: (callback) ->

    { dash } = Bongo

    methods = null
    preferredPaymentMethod = null
    appStorage = new AppStorage 'Account', '1.0'
    queue = [

      -> appStorage.fetchStorage (err) ->
