Update metaclasses
Add more events for enterprise, tests not pass now, will fix it latter. [ci skip]