Add ccs support

fix a bug