added sendmail and notificationcheck