major debugging on the encrypted key stuff.
will need to go back and clean up all the junk,
once the tests are passing.