fixed for loop../..still have libcurl error