added ability to check if server is up