handle singular links as well as multiple ones