upgrade expressController to optimized generator