added command line flags for exporting