base64 encoding

add base64 encoding for forward compatibility with new version