added proxy error handler