add more controls on export files (closes #4286, closes #4285)