improve curl arguments