sleep and dreams bug fix and updates