update c-flag hnadling