script to download file