added helper to generate short urls