add timeout in curl