tried to fix connection states