adding curl support