base64 improvements