add BuildPlugin definition for easy plugin integration