splits out p.sendAlert method, adds TODO