checkpoint before new code gen method