hmmm the arrays containing the url are empty when I run the functions from the script
what the fuck... it works... but not in the script...
hmmmm
..