improve support for ResourceCollection