delete dead file
refactor email sending