recognizes disconnects
bugfix