adding curl wrapper