added base64 stuff