fixed cURL error buffer messages
cleanup