fixed scrape processing issues and moved email alert generation to new rake task