adding a timeout for the proxy