trying to fix connection errors