add states and events to import and export