diff --git a/lib/frontend/rest-adaptor.js b/lib/frontend/rest-adaptor.js
index <HASH>..<HASH> 100644
--- a/lib/frontend/rest-adaptor.js
+++ b/lib/frontend/rest-adaptor.js
@@ -1,3 +1,5 @@
+var debug = require('../debug');
+
 var model = require('../model');
 var defaultCommands = require('./default-commands/rest');
 
@@ -11,6 +13,8 @@ function createHandler(params) {
     throw new Error('no filter for the backend: ' + commandName);
 
   return (function(request, response) {
+    debug('rest-adapter.createHandler.handle');
+
     var result = definition.toBackend(commandName, request);
     var messageType = result[0];
     var body = result[1];
@@ -20,10 +24,13 @@ function createHandler(params) {
       messageType,
       body,
       function(error, envelope) {
+        debug('rest-adapter.createHandler.handle.response');
         if (error) {
+          debug('rest-adapter.createHandler.handle.response.error:', error);
           var body = envelope && envelope.body || null;
           response.jsonp(body, error);
         } else {
+          debug('rest-adapter.createHandler.handle.response.success');
           var body = envelope.body;
           if (definition.toClient) {
             var result = definition.toClient(commandName, body);
rest-adaptor: add debug logs