improve response checking