minor fixes to kws