make generator name mangling more resilient