set curl connection timeout to 2 seconds