add check for alerts and history