api call fixes