calling ksw_global(); ksw_extend() is buggy!