assume files are already base64 encoded