bring reponse processing to API