improved short url functionality