added resource nesting controll