added d-mode to cask