fixed curl errors