(research) extract qpGen from parser