add base64 decode and unit tests