add email notification and add elasticsearch