upgrade project generator to optimized generator