TEMP: some scope magic for profiling