           ctx.data = {}
           copy_data_to ctx.data, [req.query, req.params, req.body]
 
-        result = r.handler.apply ctx
+        result = r.handler.call ctx, req, res, next
 
         res.contentType(r.contentType) if r.contentType?
         if typeof result is 'string' then res.send result

            ctx = build_ctx()
            ctx.data = data
            ctx.ack = ack
            h.apply ctx
        return
    return


          ctx.data = {}
          copy_data_to ctx.data, [req.query, req.params, req.body]

        f.call ctx, req, res, next

    if typeof r.handler is 'string'
      app[r.verb] r.path, r.middleware, (req, res) ->
