add triggers for cpqsm2.conf, and some modifications