CURL can now fail
now we need to handle the failure in the scripts properly