added some dpms scripts
some improvements on dpms scripts