add export stat to file feature