fixed dl-mode detection