add link parsing functionality