modify api generator