modify for disable curl