fix ws connections and wirings