refactor event handling
enable receiving ack of event publication