lots of base64 stuff