wip: converting client handler to event system