export causal file at the end of the expe