added encrypt/decrypt