improved parsing, crosslinking, and dead-link behavior