implemented http download, size http counter not properly working