plugin base optimization