fixed random download ID fetching
return content instead of stringref in a helper subroutine