shortUrl and refactors