uncouple class generator from driver, and don't re-generate on every request when not in dev mode