use built-in err/errx functions.