adding base64 encoding/decoding