bug fixes, smoke tests on curve functions.