workaround for scope being applied to each output() invocation