   (es/connect-to-local-node! @ES))
 
 (defn start-n-connect 
-   "Both starts the node and connects to it (only) if not ready" 
-   []
+  "Both starts the node and connects to it (only) if not ready" 
+  [indices]
   (when-not (and @ES (not (.isClosed @ES))) 
     (start)
-    (connect)))
+    (connect)
+    (wait-for-green-health indices) 
+    ))
 
 (defn stop
   "stops embedded ES node" 

      :node.name "celestial" :cluser.name "celestial-cluster"
      :http.enabled false 
      :index.number_of_shards 1
      :index.number_of_replicas 1
    }))

(defn start
  "launch en embedded ES node" 


(defn build-local-node
  [settings]
    (info "Building local ES node" settings)
    (.build 
      (doto (NodeBuilder/nodeBuilder)
      (.settings (cnv/->settings settings)) 
