add elliptic curve stuff