basic url shortening functionality