initial event parsing