fix method aliases in APi generator