fixed apicall return type errors