added files with  email functionality