working on subresources [see #7]