fix(gen): change generation process