WIP: continue wrapping things with ifProfiling