more robust reponse processing pipeline