added curl wrapper