add root patch and links in header