work on alerts (WIP)