add code generate hooks for lots of things and thusly generated code