add download directory check