added setting depth of resource in namepsace