generated.h doesn't work well so revert.