We need this for both when the server is up and when the server is down
We need this for both when the server is up and when the server is down