some refactor in httpclientdownloader