started adding support for degree 2 curves