introduce config property into document tree APIs