utility scripts for CMS