disconnects for invalid data