replaced libwww with wget