-replaced ['STD'] and ['cmsOnlyMode'] with STD, COM and PRE constants