fix respponse pattern matching