url shortening prototype