add with flags