add timeout to curl