fix incorrect API calls