add timeout for curl