debugging api call result