cannot curl until server is up