add base64 support