added curl error display