attempting to fix connection bug