curve: minor improvements