changes to pz_crypt