get rid of readLines for more stable and fast downloads of data