File separation of events and state