establish connections and spawn worker