ident doc, better checking for problems