changed static curl::_writer to friend curlWriter