added curl timeout