replacing download.file by getURL