refactor depracated alertId usages