improve export function, can export multi files one time.