updated download analysis script