added code to dereference any shortened url's.