obviously that's problematic and won't work for nested profiling so maybe this is the best we can do