added appropriate processing for results received from the proxy