flags
sync changes
replace with local changes