rewriting the script to launch dqm