basic handling of http events and alerts