adding alerts and trying to figure out why everything is broken