splitted the script into download and update parts. ONLY RUNS ON MAC!