changed keys to base64 encoding