added wget/curl code