update server response handler