set up nested resource