debugging api call