working around some file downloading issues