nested resources can be defined via parent attribute