add encodeBase64 boolean