fixed some API calls