wrote download script