fixed debugging, encryption and decryption of json objects stringified