added support for base64