debug file downloading