changes for file event to download files