updated file downloading