                       local-config
                       local-domain-root
                       remote-path
-                      (domain/host-shards (domains-info domain))
+                      host-shards
                       state)
          ;; use cached domain from local-dir (no update needed)
          (do

                        rw-lock
                        (fn [domain]
                          (use-cache-or-update domain
                                               domains-info
                                               global-config
                                               local-config))))


        domains (keys domains-info)]
    (log-message "Domains info: " domains-info)
    (future
      (try (purge-unused-domains! domains local-dir)
           (sync-remote-data domains-info global-config local-config rw-lock)
           (cleanup-domains! domains local-dir)
           (log-message "Finished loading all updated domains from remote")
