       if fn.isSecurityEnabled
         if client
           args = [client].concat args
-          _apply fn, ctx, args
+          applyWithMerics fn, ctx, args
         else
           bongo.fetchClient sessionToken, userArea, (client) ->
             args = [client].concat args
-            _apply fn, ctx, args
+            applyWithMerics fn, ctx, args
       else
-        _apply fn, ctx, args
+        applyWithMerics fn, ctx, args
     ###
     @implementation
     ###

      @remoteStore.get storeKey
    @invokeMethod method, unscrubbed, userArea, sessionToken, secretName, client

  pong : (callback) -> callback? Date.now()

  invokeMethod : do ->
    ###
    @helper apply()
    @private

        return


      applyWithMerics = (fn, ctx, args) ->
        if bongo.metrics
          # wrapping callback function if there is one in the args
          if typeof (callback = args[args.length - 1]) is 'function'
