document metaclass implementation