added support for retrieving resource labels