improve dpms handling