added the ability to turn encryption on and off for testing purposes