added curl helper