only reset the server if needed