added a timeout for CURL