added link shortener functions