added export_stats command