changes to crypto class