added a method to download files