refactoring customer and plugins objects