fixed the readResponseHandler