make txcurve optional