another attempted fix for the disconnect bug