add commit flag