try to fix GC perf issue with the dup improve docs a bit