removed metaclasses, switched to class registry