adding old KCB source to work from