upgrade to new signature of update_flags