basecurve tool: fixes and improvements