refactoring plugin