        (handle-volumes aws endpoint instance-id)    
        (when-let [ip (get-in spec [:machine :ip])] 
          (debug (<<  "Associating existing ip ~{ip} to instance-id"))
-       (with-ctx ec2/assoc-pub-ip instance-id ip))
-       (update-pubdns spec endpoint instance-id)
+          (with-ctx eip/assoc-pub-ip instance-id ip))
+       (update-ip spec endpoint instance-id)
        (wait-for-ssh endpoint instance-id user [5 :minute])
        (set-hostname spec endpoint instance-id user)
         this))

      (debug "starting" instance-id)
      (with-ctx ec2/start-instances instance-id) 
      (wait-for-status this "running" [5 :minute]) 
      (update-pubdns spec endpoint instance-id)))

  (delete [this]
    (with-instance-id

  (:endpoint m )
  (.status m)
  (.start m)
  (clojure.pprint/pprint 
    (celestial.model/set-env :dev 
      (instance-desc  "i-cdd59781") ))

  (clojure.pprint/pprint 
    (celestial.model/set-env :dev 
     (first (:addresses (eip/describe-eip (assoc (creds) :endpoint "ec2.eu-west-1.amazonaws.com") "i-cdd59781"))))) 
  ) 


