work on file downloading