curves can be set in both client and server