added base64 encoder for later use?