add a flag when write file