setting a 2 second curl timeout