Update lib and cg