added wget engine to download function