security, saving to csv, and mailing in survey