renamed afterEvaluation hooks to beforeProductGeneration