change == to ===
fixed triple connection bug
fixes conflicts