changed curl error to critical instead of unknown