add i_errors()/im_errors() to the API