#284, #213: updated file downloading.