updated to latest code from VisualAlertForPi