changed filter to work without b64 encoding. writes files directly to metadata store