export_all function