generating downloads on the fly