further changes to ::net. Now supports gzip