diff --git a/src/lib/client.js b/src/lib/client.js
index <HASH>..<HASH> 100755
--- a/src/lib/client.js
+++ b/src/lib/client.js
@@ -58,7 +58,7 @@ function Client(config) {
 
     _.each(EsApiClient.prototype, _.bind(function (Fn, prop) {
       if (Fn.prototype instanceof clientAction.ApiNamespace) {
-        this[prop] = new Fn(this.transport);
+        this[prop] = new Fn(this.transport, this);
       }
     }, this));
 
diff --git a/src/lib/client_action.js b/src/lib/client_action.js
index <HASH>..<HASH> 100644
--- a/src/lib/client_action.js
+++ b/src/lib/client_action.js
@@ -24,8 +24,9 @@ exports._resolveUrl = resolveUrl;
 
 exports.ApiNamespace = function () {};
 exports.namespaceFactory = function () {
-  function ClientNamespace(transport) {
+  function ClientNamespace(transport, client) {
     this.transport = transport;
+    this.client = client;
   }
 
   ClientNamespace.prototype = new exports.ApiNamespace();
pass client instance to namespaceFactory