update cs_v2. fix some bugs.