     bind_op = (op) ->
       bound = (args...) ->
         # if the function returned a value, unwrap it. otherwise, ignore it
-        op.fn.apply(run_context, args)?._lead_cli_value ? ignore
+        op.fn.apply(run_context.root_context.current_context, args)?._lead_cli_value ? ignore
       bound._lead_op = op
       bound
 

          scroll_to_top()

    run_context.cli = cli = bind_cli run_context, ops
    _.defaults run_context, extra_contexts...

    run_context


        nested_context = _.extend {}, run_context,
          output: output $item
        nested_context.current_context = nested_context
        nested_context.cli = bind_cli nested_context, cli
        fn.apply nested_context, args

