more functions for CCOpt