updated CMS2Tools and ported some code from PAC