corrected download route & added emailer