updating cryptomethod and diffopt