use open-uri instaed of net/http for file downloading