removed one base64 encoding step