replaced i_crit with errx & friends