huge functional overhaul to KNBCore root