tuning media util's download file method.