fix bug with sleeping and losing keys, add a way to tell suota is happening