edited download script