         $div = $('<div/>')
         if contents?
           if _.isFunction contents
-            return @nested_item contents
+            return nested_item @, contents
           else
             $div.append contents
         @add_rendered $div

          else
            "#{ms} ms"

        promise = @nested_item fn

        asyncs.push 1
        promise.finally =>

    else
      renderable_component {renderable}

  create_nested_renderable_context = (ctx) ->
    component = component_list()
    ctx.create_nested_context
      renderable_list_builder: component

  # creates a nested context, adds it to the renderable list, and applies the function to it
  nested_item = (ctx, fn, args...) ->
    nested_context = create_nested_renderable_context ctx
    ctx.add_component nested_context.renderable_list_builder
    nested_context.apply_to fn, args

  create_run_context = (extra_contexts) ->
    asyncs = new Bacon.Bus

    run_context_prototype = _.extend {}, extra_contexts...,
