fix route insertion in docent installer
rework link finding logic