refactor into init_alerts and start ratings