update with flags