make the resource a link
correctly get the number of errors