add a warn_na flag, so warnings on NA values become optional.