fixed (hopefully last) problem with disconnecting