add cb board rate function and fix some bugs