debugging api call result sometime would not display anything