added minimal event parsing