changed how rootlinks are handled