some fixes for download-directory