upgrade API generator