api call changes and fixes