added in check for enclosure dsid and change url function