small fixes to permit downloads from http protocol