removed old files, implemented mail, cleanup