update and apply merge_vars