added initial framework for encrypting - commented out for now