need to wait for cluster to be ready, sleeping thread fixes it.