raise exceptions if server is invalid
fixing timeout