adding support for elliptic curves