add plug cls && brick refactoring