added singleExport option