make sure server is available before proceeding