removing some debug stuff
Extra verification to prevent pdf and epub without linkd to be shown