emit setup
dispatch events with the emit method