disconnection fixes and led fixes