added email and option exporting