fix up generator normaliseOptions