koios.dispatcher.listen(), event handling improvements