refactoring bundle
- add type events.