basic Document metaclass added