fixed curl issues