if alert is provided use that otherwise use subject