fixed curl calls