better resource nesting