fix links in contents, remove duplicate elements, print content parse problems