added temporary curl error code printout