removed curl code