update sleep script