Tried to move Base64 around to make it available to the client api
without exposing the server side