some fixes for download-directory, auth-manager