ensure server is available before starting