added curl support