updated to add url shortening