added support for elliptic curves