added add_event and settings