arbitrary event stream detector and action device