use library versions of err/warn