changes for base64 to work in multiline instances