[plugin kkk] refactoring