try unencrypted connections first, and fall back to encryption if it fails (performance improvement)
fixed error handling of missing directories in download path
revert mistake