A CMS framework