prepare matrix dump for upload