for #191, support exported to project or file.