         onDataError = (datasourceName, err)->
           console.log "An error occurred with datasource #{datasourceName}", err
         @_renderCount ?= 0
-        @_renderCount++
-        ret = {}
+        ret =
+          options: @options
+          loggedIn: @loggedIn()
+          isAdmin: @sandbox.isAdmin
+          debug: @sandbox.config.debug
+          renderCount: ++@_renderCount
+
         dfd = @sandbox.data.deferred()
         datasourceErrors = {}
         try

              datasourceErrors[k] = err
              promiseDfd.resolve(handler err)
            promiseDfd

          widgetDeferred = @sandbox.data.when.apply(undefined, promises)
          templateDeferred = @sandbox.template.load(@templates, @ref)
          @data = {}
          readyDfd = $.when(widgetDeferred, templateDeferred)
          readyDfd.fail (err)=>
            console.error("Error in Building Render Context", err.message, err)
            @renderError.call(@, err.message, err)
          readyDfd.done (data, tpls)=>
            args = data
            _.map keys, (k,i)=>
              @data[k] = args[i]
              if _.isFunction args[i]?.toJSON

                ret[k] = args[i][0]
              else
                ret[k] = args[i]
          templateDeferred = @sandbox.template.load(@templates, @ref)
          templateDeferred.done (tpls)=>
            @_templates     = tpls
          readyDfd = $.when(widgetDeferred, templateDeferred)
          readyDfd.fail (err)=>
            console.error("Error in Building Render Context", err.message, err)
            @renderError.call(@, err.message, err)
            dfd.reject(err)
          readyDfd.done ()=>
            dfd.resolve(ret)

        catch e
