prepare for download