reduce complexity of event parsing