add base64 and modular math