workaround for filehandle issue with WWW::Curl