add curl support