update library
test spec ref num curve segs