small changes to fix retainer profiling on HEAD