updated to handle metaclasses via activator.