kwarg on_events and hardcoded callbacks