better handling of wget