refactoring plugin customization