master
// TODO: too much logic in the routing layer, refactor along with some other stuff that does KC client operations