sleep, made smarter