add base64 model implementation