use err, errx instead of fprintf