update cap to 3.x