redo ksc rest changes.